<template>
  <div>
    <!-- 头部 -->
    <div class="header">
      <div class="wrapper clearfix">
        <h1 class="tuan-head">
          <a @click="$router.push('/')">易创天下网上商城</a>
        </h1>
        <div class="quick-entry">
          <a class="cart">购物车
            <i class="ico"></i>
            <em class="number">0</em>
          </a>
          <a class="coupon">我的优惠券
            <i class="ico"></i>
          </a>
          <a class="order" @click="$router.push('/order')">我的订单
            <i class="ico"></i>
          </a>
        </div>
        <div class="search-box">
          <div class="search" id="serch">
            <input type="hidden" value="List" name="c">
            <input type="hidden" value="TuanSearch" name="a">
            <input name="searchName" id="search-text" type="text" class="search-text" autocomplete="off" placeholder="找找您想要的商品"
              value=" 恒源祥纯棉床品">
            <input type="submit" value="搜索" class="search-btn" hidefocus="true">
          </div>

        </div>
      </div>
    </div>
    <!-- 头部 -->
    <!---->
    <!-- 导航 -->
    <div class="nav-box nav-box-with-line">
      <div class="wrapper" style="position:relative;">
        <ul class="nav clearfix">
          <li :class="{'current' : status == 1}" @click="handleStatus(1)">
            <a href="javascript:;" target="_blank">易创天下</a>
          </li>
          <li :class="{'current' : status == 2}" @click="handleStatus(2)">
            <a href="javascript:;" target="_blank">京东</a>
          </li>
        </ul>
        <div class="hhhhh">
          <div class=" category-nav" id="_j_category_nav">
            <div class="category-nav-header">全部分类<i class="ico"></i></div>
          </div>

          <div class="category-nav-body">
            <div class="category-items" id="category-items">
              <div class="item">
                <h3><a href="javascript:;">手机</a><i></i></h3>
                <i class="icon-01"></i>
                <div class="category-dropdown" id="J_CategoryDropdown">
                  <div class="category-all" id="category-item-1">
                    <div class="items-list">
                      <a href="javascript:;">手机</a>
                      <span>|</span>
                      <a href="javascript:;">移动电源</a>
                      <span>|</span>
                      <a href="javascript:;">蓝牙耳机</a>
                      <span>|</span>
                      <a href="javascript:;">手机贴膜</a>
                      <span>|</span>
                      <a href="javascript:;">保护套</a>
                      <span>|</span>
                      <a href="javascript:;">数据线</a>
                      <span>|</span>
                      <a href="javascript:;">充电器</a>
                      <span>|</span>
                      <a href="javascript:;">手机维修</a>
                    </div>
                  </div>
                </div>
              </div>
              <div class="item">
                <h3><a href="javascript:;">电脑</a><i></i></h3>
                <i class="icon-02"></i>
              </div>
              <div class="item">
                <h3><a href="javascript:;">DIY</a><i></i></h3>
                <i class="icon-07"></i>
              </div>
              <div class="item">
                <h3><a href="javascript:;">数码</a><i></i></h3>
                <i class="icon-03"></i>
              </div>
              <div class="item">
                <h3><a href="javascript:;">外设</a><i></i></h3>
                <i class="icon-04"></i>
              </div>
              <div class="item">
                <h3><a href="javascript:;">智能</a><i></i></h3>
                <i class="icon-05"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!---->
  </div>
</template>
<script>
  export default {
    data() {
      return {
        status: 1,
      }
    },
    methods: {
      handleStatus(num) {
        this.status = num;
        this.$emit('handleStatus', num)
      }
    },
  }

</script>
<style scoped>
  .tit1 {
    text-align: left;
    font-size: 30px;
  }

  .nav {
    padding: 0 0 0 180px;
  }

  .current a {
    color: #c00 !important;
  }



  /* 头部搜索 */
  @font-face {
    font-family: "iconfont";
    /* project id 22233 */
    src: url("//at.alicdn.com/t/font_ktnkt22hrotg9zfr.eot");
    src: url("//at.alicdn.com/t/font_ktnkt22hrotg9zfr.eot?#iefix") format("embedded-opentype"),
      url("//at.alicdn.com/t/font_ktnkt22hrotg9zfr.woff") format("woff"),
      url("//at.alicdn.com/t/font_ktnkt22hrotg9zfr.ttf") format("truetype"),
      url("//at.alicdn.com/t/font_ktnkt22hrotg9zfr.svg#iconfont") format("svg");
  }

  .iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
  }


  .header {
    width:1200px!important;
    padding: 30px 0;
    background: #fff;
    margin: 0 auto;
  }


  .tuan-head a {
    display: block;
    width: 200px;
    height: 50px;
    background-image: url('../image/logo.png');
    background-repeat: no-repeat;
    font: 0/0 arial;
    overflow: hidden;
    float: left;
  }

  .channel {
    float: left;
    margin: 0 0 0 20px;
    padding: 0 0 0 20px;
    border-left: 1px solid #eee;
    font: 20px/50px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  }

  /* search */
  .search-box {
    float: right;
    margin: 7px 0 0 0px;
  }

  .search-box .search {
    position: relative;
    zoom: 1;
    z-index: 102;
    width: 536px;
    height: 32px;
    border: 2px solid #ec3639;
  }

  .search-text {
    padding: 6px 10px;
    width: 441px;
    height: 20px;
    font: 14px/20px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    color: #666;
    border: 0 none;
    outline: 0 none;
  }

  .search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 75px;
    height: 32px;
    font: 16px/32px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    color: #fff;
    border: 0 none;
    background: #ec3639;
    outline: 0 none;
    cursor: pointer;
  }

  .search-history {
    position: absolute;
    top: 34px;
    left: -2px;
    width: 538px;
    border: 1px solid #ccc;
    background: #fff;
  }

  .search-history ul {
    padding: 0 2px;
  }

  .search-history li {
    position: relative;
    zoom: 1;
    padding: 0 7px;
    height: 24px;
    font: 12px/24px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    cursor: pointer;
  }

  .search-history-selected {
    background: #f5f5f5;
  }

  .search-history .delete {
    display: none;
    position: absolute;
    top: 0;
    right: 8px;
    color: #c00;
    cursor: pointer;
  }

  .search-history .close {
    padding: 0 10px;
    font: 12px/24px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    text-align: right;
    border-top: #e6e6e6 1px solid;
    color: #666;
  }

  .search-history .close span {
    cursor: pointer;
    text-decoration: underline;
  }

  .search-hot-words {
    position: absolute;
    top: 7px;
    right: 85px;
  }

  .search-hot-words a {
    display: inline-block;
    *zoom: 1;
    *display: inline;
    margin: 0 0 0 5px;
    padding: 0 5px;
    font: 12px/18px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    background: #eee;
    color: #757575;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
  }

  .search-hot-words a:hover {
    background: #ec3639;
    color: #fff;
    text-decoration: none;
  }

  /* entry */
  .quick-entry {
    float: right;
    margin: 0 0 0 65px;
    padding: 7px 0 0;
  }

  .quick-entry a {
    position: relative;
    zoom: 1;
    float: right;
    margin: 0 0 0 20px;
    font: 14px/36px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    color: #333;
  }

  .quick-entry a:hover {
    text-decoration: none;
  }

  .quick-entry .ico {
    position: absolute;
    top: 0;
    left: 0;
    font: 0/0 arial;
  }

  .quick-entry .cart {
    padding: 0 0 0 24px;
  }

  .quick-entry .coupon {
    padding: 0 0 0 27px;
  }

  .quick-entry .order {
    padding: 0 0 0 28px;
  }

  .quick-entry .cart .ico {
    top: 9px;
    width: 18px;
    height: 18px;
    background-position: 0 -211px;
  }

  .quick-entry .coupon .ico {
    top: 9px;
    width: 22px;
    height: 18px;
    background-position: 0 -190px;
  }

  .quick-entry .order .ico {
    top: 8px;
    width: 20px;
    height: 20px;
    background-position: 0 -167px;
  }

  .quick-entry .cart:hover .ico {
    background-position: -32px -211px;
  }

  .quick-entry .coupon:hover .ico {
    background-position: -28px -190px;
  }

  .quick-entry .order:hover .ico {
    background-position: -30px -167px;
  }

  .quick-entry .number {
    position: absolute;
    left: 12px;
    top: 1px;
    padding: 0 3px;
    height: 13px;
    font: 12px/13px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    color: #fff;
    background: #f33;
    border-radius: 10px;
  }

  /* 导航 */
  .nav-box {
    position: relative;
    z-index: 101;
    background: #fff;
  }

  .nav-box-with-line .nav {
    border-bottom: 2px solid #ec3639;
  }

  .nav li {
    float: left;
    padding: 0 30px 0 0;
    height: 39px;
    font: 18px/39px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  }

  .nav li a {
    float: left;
    padding: 0 10px;
    color: #333;
  }

  .category-nav {
    float: left;
    position: relative;
    margin: -39px 0 0;
    width: 160px;
    height: 39px;
    background-color: #ec3639;
    z-index: 20;
  }

  .category-nav-header {
    padding: 0 0 0 52px;
    font: 16px/38px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
    color: #fff;
    cursor: pointer;
  }

  .category-nav-header .ico {
    position: absolute;
    top: 14px;
    left: 26px;
    width: 12px;
    height: 10px;
    background-position: 0 -154px!important;
  }

  .category-nav-body {
    display: none;
    position: absolute;
    top: 39px;
    left: 0;
    width: 160px;
    background-color: #fff;
  }

  .category-items {
    /* position: relative; */
    height: 400px;
    overflow: hidden;
    background-color: #454545;
    z-index: 3;
  }

  .category-items .item {
    /* position: relative; */
    zoom: 1;
    margin: -1px 10px 0;
    padding: 0 0 0 60px;
    height: 54px;
    border-top: 1px solid #4d4d4d;
  }

  .category-items .item h3 {
    position: relative;
    height: 54px;
    overflow: hidden;
    font: 16px/54px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  }

  .category-items .item h3 a {
    color: #fff;
  }

  .category-items .item h3 i {
    position: absolute;
    top: 23px;
    right: 12px;
    width: 6px;
    height: 11px;
    background-position: -44px -154px;
  }

  .category-items .item i {
    position: absolute;
  }

  .category-items .item .icon-01 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 13px;
    height: 18px;
    display: flex;
    background-position: 0 0;
  }

  .category-items .item .icon-02 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 20px;
    height: 16px;
    display: flex;
    background-position: 0 -21px;
  }

  .category-items .item .icon-07 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 19px;
    height: 18px;
    display: flex;
    background-position: 0 -133px;
  }

  .category-items .item .icon-03 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 20px;
    height: 18px;
    display: flex;
    background-position: 0 -40px;
  }

  .category-items .item .icon-04 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 15px;
    height: 27px;
    display: flex;
    background-position: 0 -61px;
  }

  .category-items .item .icon-05 {
    position: relative;
    left: -45px;
    top: -35px;
    width: 19px;
    height: 17px;
    display: flex;
    background-position: 0 -91px;
  }

  .category-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 160px;
    width: 680px;
    height: 400px;
    background-color: #fff;
    -webkit-box-shadow: 0 0 8px 0 #ccc;
    box-shadow: 0 0 8px 0 #ccc;
    z-index: 2;
  }

  .category-all {
    position: relative;
    padding: 0 30px 30px;
    height: 370px;
  }

  .category-all .items-list {
    padding: 13px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .category-all .items-list a {
    display: inline-block;
    margin: 0 10px;
    font: 14px/28px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  }

  .category-all .banner {
    position: absolute;
    bottom: 30px;
    right: 30px;
  }

  .category-all .banner img {
    display: block;
  }


/* 头部 */ 

.header .detail_logo {
  float: left;
}

.header .detail_logo a {
  display: block;
  width: 220px;
  height: 60px;
  background-image: url(../image/logo.png); 
  background-repeat: no-repeat;
  font: 0/0 arial;
  overflow: hidden;
}

.quick-entry {
  float: right;
  margin: 0 0 0 65px;
  padding: 7px 0 0;
}

.city-location .city-name .icon,
.quick-entry .ico,
.category-nav-header .ico,
.category-items .item i {
  background: url(../image/head.png) no-repeat;
}

.quick-entry .ico {
  position: absolute;
  top: 0;
  left: 0;
  font: 0/0 arial;
}

.quick-entry .cart .ico {
  top: 9px;
  width: 18px;
  height: 18px;
  background-position: 0 -211px;
}

.quick-entry .number {
  position: absolute;
  left: 12px;
  top: 1px;
  padding: 0 3px;
  height: 13px;
  font: 12px/13px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  color: #fff;
  background: #f33;
  border-radius: 10px;
}

.quick-entry .cart {
  padding: 0 0 0 24px;
}

.quick-entry a {
  position: relative;
  zoom: 1;
  float: right;
  margin: 0 0 0 20px;
  font: 14px/36px "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1";
  color: #333;
}

.quick-entry .coupon .ico {
  top: 9px;
  width: 22px;
  height: 18px;
  background-position: 0 -190px;
}

.quick-entry .order .ico {
  top: 8px;
  width: 20px;
  height: 20px;
  background-position: 0 -167px;
}
.quick-entry .order {
    padding: 0 0 0 28px;
}
.quick-entry .coupon {
    padding: 0 0 0 27px;
}
.search-box {
    float: right;
    margin: 7px 0 0 0px;
}
.search-box .search {
    position: relative;
    zoom: 1;
    z-index: 102;
    width: 536px;
    height: 32px;
    border: 2px solid #ec3639;
}
.search-text {
    padding: 6px 10px;
    width: 441px;
    height: 20px;
    font: 14px/20px "Microsoft YaHei","\5FAE\8F6F\96C5\9ED1";
    color: #666;
    border: 0 none;
    outline: 0 none;
}
.search-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 75px;
    height: 32px;
    font: 16px/32px "Microsoft YaHei","\5FAE\8F6F\96C5\9ED1";
    color: #fff;
    border: 0 none;
    background: #ec3639;
    outline: 0 none;
    cursor: pointer;
}
.search-hot-words {
    position: absolute;
    top: 7px;
    right: 85px;
}
.search-hot-words a {
    display: inline-block;
    *zoom: 1;
    *display: inline;
    margin: 0 0 0 5px;
    padding: 0 5px;
    font: 12px/18px "Microsoft YaHei","\5FAE\8F6F\96C5\9ED1";
    background: #eee;
    color: #757575;
    -webkit-transition: all .2s;
    transition: all .2s;
}
</style>
